//Author: Sukhbir 

void makerpn(){

static char pr[] = { 0,0,1,2,3,3,4,4};
char n, *p, *r, s, *t;
cout<<"\nRPN form:\n\n";
t=stak-1;
r=rpn;
p=&inform[0];

for(p; *p!='\0'; p++){
			if(7<(s=*p)){
				*r++=s;
				continue;
			}
			else{
				if(s==1){
					*++t=s;
					continue; 
				}
				else{
					while(true){
						if(t<stak){
							*++t=s;
							break;
						}
						else{
							if(pr[s]<=pr[n=*t--]){
								*r++=n;
								continue;
							}
							else{
								if(3<n+s){
									*++t=n;
									*++t=s;
								}
								break;
					        }
						}
					}
				}
            }
	}
while(stak<=t){
			*r++=*t--;
	}
	
	*r='\0';
	
	for(r; *r!='\0'; r++){
		cout<<ext[(int)*r];
	}
	cout<<"\n\n";
}